package com.liyongjian.xhban.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.liyongjian.xhban.model.emumm.LiveDieState;


@Entity
@Table(name = "tb_user")
public class User extends AbstractEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    public String name;
    public String nickName;
    public String phone;
    public String photo;
    @Column(columnDefinition = "tinyint")
    public LiveDieState state = LiveDieState.LIVE;

    public User(Long id) {
        this.id = id;
    }

    public User() {}

}
